package com.micro.school.common.core.utils;

public class SensitiveHelper {

    public static String maskIdCard(String idCard) {
        if (idCard == null || idCard.length() < 8) {
            return idCard; // 避免空指针或短字符串
        }
        return SensitiveUtils.IDCARD_EN_SENSITIVE.function().apply(idCard);
    }
}
